package com.gzdh.tang.config.youxin;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class YouXinConfig {

    @Value("${youxin.pay.appId}")
    private String appId;

    @Value("${youxin.pay.url}")
    private String url;

    @Value("${youxin.pay.accessToken}")
    private String accessToken;

    @Bean
    public void YouXinInit() {
        YouXinPayUtil.setAppId(appId);
        YouXinPayUtil.setUrl(url);
        YouXinPayUtil.setAccessToken(accessToken);
    }
}
